package com.lianniu.web.tea.user.news.controller;

import javax.servlet.http.HttpServletRequest;

import org.apache.log4j.Logger;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;
import org.springframework.web.bind.annotation.ResponseBody;

import com.lianniu.web.base.BaseResult;
import com.lianniu.web.tea.user.news.model.TeaNews;
import com.lianniu.web.tea.user.news.service.ITeaNewsService;
/**
 * 用户消息类
 * @author ASDC
 *
 */
@Controller
@RequestMapping("/rest/tea/user/news")
public class TeaNewsController {
	private final static Logger logger = Logger.getLogger(TeaNewsController.class);

	@Autowired
	private ITeaNewsService teaNewsService;
	
	@RequestMapping(value="/getUserNewsList",method=RequestMethod.GET)
	public @ResponseBody BaseResult getUserNewsList(HttpServletRequest req, TeaNews teaNews){
		BaseResult baseResult = teaNewsService.getUserNewsList(teaNews);
		return baseResult;
		
	}
}
